package zhy.UseViewGroupCustomPullRefresh;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.ScrollView;

public class UseViewGroupCustomPullRefreshActivity extends Activity {
    //ScrollView
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //setContentView(R.layout.main);
        
        LinearLayout view=new LinearLayout(this);
        view.setOrientation(LinearLayout.VERTICAL);
        setContentView(view);
        Button button=new Button(this);
        view.addView(button);
        button.setText(R.string.hasnot_scroll_view);
        button.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				startActivity(new Intent(UseViewGroupCustomPullRefreshActivity.this,SampleNoScrollActivity1.class));
			}});
        Button button2=new Button(this);
        view.addView(button2);
        button2.setText(R.string.has_scroll_view);
        button2.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				startActivity(new Intent(UseViewGroupCustomPullRefreshActivity.this,SampleYesScrollActivity2.class));
			}});
        
        Button button3=new Button(this);
        view.addView(button3);
        button3.setText(R.string.has_scroll_view);
        button3.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				startActivity(new Intent(UseViewGroupCustomPullRefreshActivity.this,SampleYesScrollActivity21.class));
			}});
    }
}